import request from '@/utils/request'

//新增车辆基础信息
export function vehicleDisposal(data) {
  return request({
    url: `/vehicleDisposal/vehicleDisposal`,
    method: 'post',
    data
  })
}

//查询车辆处置信息列表

export function vehicleDisposalList(params) {
  return request({
    url: `/vehicleDisposal/vehicleDisposal/list`,
    method: 'get',
    params
  })
}

//获取车辆处置信息详细信息(拒绝、审批中）
export function vehicleDisposalDetails(vehicleDisposalId) {
  return request({
    url: `/vehicleDisposal/vehicleDisposal/${vehicleDisposalId}`,
    method: 'get',
  })
}


//新增车辆撤销处置记录
export function revocationDisposalLog(data) {
  return request({
    url: `/vehicleDisposal/revocationDisposalLog`,
    method: 'post',
    data
  })
}

//获取车辆撤销处置记录详细信息
export function revocationDisposalLogDetails(id) {
  return request({
    url: `/vehicleDisposal/revocationDisposalLog/${id}`,
    method: 'get',
  })
}


//车辆过户
export function carTransfer(data) {
  return request({
    url: `/vehicleDisposal/vehicleDisposal/carTransfer`,
    method: 'put',
    data
  })
}


//获取车辆撤销处置记录详细信息
export function revocationDisposalId(revocationDisposalId) {
  return request({
    url: `/vehicleDisposal/revocationDisposalLog/${revocationDisposalId}`,
    method: 'get',
  })
}

//根据车辆id查询车辆基础信息(处置模块使用)
export function getVehicleDisposal(carId) {
  return request({
    url: `/car/carBasic/getVehicleDisposal/${carId}`,
    method: 'get',
  })
}

//查询车辆基础信息列表(处置模块使用)
export function queryOtherList(params) {
  return request({
    url: `/car/carBasic/queryOtherList`,
    method: 'get',
    params
  })
}
